﻿/**
 * hash值变化
 */
$(function(){
	$(window).hashchange(function(){
		loadFn(location.hash.replace(/^#/,''));
	});
	$(window).hashchange();
	_LOCATION_HASH=location.hash.replace(/^#/,'');
});
function loadFn(para){
	if($.trim($(".header").html())==""){
		loadPage(".header","public/header.html");
	}
	if($.trim($(".footer").html())==""){
		loadPage(".footer","public/footer.html");
	}
	if(para=="blank"){
		clearPop();
	}
	var params = para.split('_');
	if(params[0]!=undefined){
		if(params[0].indexOf("login")!=-1){
			popDiv("public/login.html","blank");
		}else if(params[0].indexOf("register")!=-1){
			popDiv("public/register.html","blank");
		}else if(params[0].indexOf("contrast")!=-1){
			popDiv("public/contrast.html","blank");
		}else if(params[0].indexOf("modifyInfo")!=-1){
			includeCss("css/modify_inforamtion.css");
			popDiv("member/modify_information.html","blank");
		}
	}
}